<php>
if(count($weibolist,0)>10){
	echo 'moreThanTen';
}else{
</php>
	<volist name="weibolist" id="feed">
	<div class="cob">
	<div class="c" isdig="{$feed.is_digg}" id="c_{$feed.feed_id}" cid="{$feed.feed_id}" rowid="{$feed.feed_id}" appid="{$feed.uid}" from="index" page="" feedtype="{$feed.type}" isdel="{$feed.api_source.is_del}">
		<!-- 判断是否被收藏 -->
		<php>if($feed['favorited']==1){</php>
			<div class="sc sc_1" id="sc_{$feed.feed_id}" cid="{$feed.feed_id}" type="{$feed.app_row_table}"></div>
		<php>}else{</php>
			<div class="sc" id="sc_{$feed.feed_id}" cid="{$feed.feed_id}" type="{$feed.app_row_table}"></div>
		<php>}</php>

		<!-- 原分享 -->
		<div class="c_info">
			<div class="c_ava">
				<img src="{$feed.avatar_small}" width=40 height=40>
			</div>
			<div class="info_text">
				<div id="c_info_name_{$feed.feed_id}" class="c_info_name">{$feed.uname}</div>
				<div class="c_info_more_box">
					<div id="c_time_{$feed.feed_id}" class="c_time">{$feed.publish_time|friendlyDate}</div>
					<div id="c_digg_count_{$feed.feed_id}" class="c_digg_count">赞：{$feed.digg_count}</div>
					<div id="c_zf_count_{$feed.feed_id}" class="c_zf_count">转发：{$feed.repost_count}</div>
					<div id="c_comment_count_{$feed.feed_id}" class="c_comment_count">评论：{$feed.comment_count}</div>
				</div>
			</div>
		</div>
		<div id="c_content_{$feed.feed_id}" class="c_content">
			<php>
				echo wapFormatContent($feed[content]);
				if($feed['type'] == 'weiba_post'){
					</php>
						<div class="loadweiba" weibaid="{$feed.api_source.post_id}">
							查看全文
						</div>
					<php>
				}
			</php>
		</div>

		<!-- 原分享的图 -->
		<php>if($feed['feedType']=='postimage') {</php>
		<div id="feed_img_box_{$feed.feed_id}" class="feed_img_box">
			<php>foreach($feed['attach'] as $value){</php>
				<img bm="{$value['attach_middle']}" class="feed_img" src="{$value['attach_small']}" linkto="{:U('w3g/Index/detail',array('weibo_id'=>$feed['weibo_id']))}">
			<php>}</php>
		</div>
		<php>}</php>

		<!-- 转发 -->
		<php>if (($feed['type'] == 'repost' && $feed['api_source']['is_del'] == '0') || ($feed['type'] == 'repost' && $feed['transpond_data']['api_source']['is_del'] == '0')) {</php>
		<div id="c_zf_box_{$feed.feed_id}" class="c_zf_box">
			<dt class="bgcolor_arrow"><em class="arrline">◆</em><span class="downline">◆</span></dt>
			<div class="c_zf_content">
				<span class="c_zf_content_name">@{$feed.transpond_data.uname}</span>:
				<php>echo wapFormatContent($feed['transpond_data'][feed_content]);
					if($feed['transpond_data']['type'] == 'weiba_post'){
					</php>
						<div class="loadweiba" weibaid="{$feed.transpond_data.api_source.post_id}">
							查看全文
						</div>
					<php>
					}
				</php>
			</div>
		<!-- 转发的图 -->
			<php>if($feed['transpond_data']['type']=='postimage') {</php>
				<div class="feed_img_box">
					<php>foreach($feed['transpond_data']['attach'] as $value){</php>
						<img bm="{$value['attach_middle']}" class="feed_img" src="{$value['attach_small']}">
					<php>}</php>
				</div>
			<php>}</php>
			<div class="c_zf_info">
				<div class="c_zf_info_time">{$feed.transpond_data.publish_time|friendlyDate}</div>
				<div class="c_zf_info_counts">
					<span class="c_zf_info_count">转发:{$feed.transpond_data.repost_count}</span>
					<span class="c_zf_info_count">评论:{$feed.transpond_data.comment_count}</span>
					<span class="c_zf_info_count">赞:{$feed.transpond_data.digg_count}</span>
				</div>
			</div>
			<!-- 附件 -->
			<div><php>if(isset($feed['transpond_data']['attach']) && $feed['transpond_data']['type'] == 'postfile'){</php>
				<div class="attach_box">
					<php>foreach($feed['transpond_data']['attach'] as $value){
							switch($value['extension']){
								case 'png':$type='pic';break;
								case 'jpg':$type='pic';break;
								case 'jpeg':$type='pic';break;
								case 'bmp':$type='pic';break;
								case 'gif':$type='pic';break;
								case 'zip':$type='zip';break;
								case 'rar':$type='zip';break;
								case 'doc':$type='word';break;
								case 'docx':$type='word';break;
								case 'xls':$type='xls';break;
								case 'ppt':$type='ppt';break;
								case 'pdf':$type='pdf';break;
								default:$type='unknow';break;
							}
							$size=$value['size'];
							if($size > 1024 && $size< 1024*1024){
								$size=$size/1024;
								$size=round($size,2);
								$size.='K';
							}else if($size < 1024){
								$size.='B';
							}else{
								$size=$size/1024/1024;
								$size=round($size,2);
								$size.='M';
							}
					</php>
						<a class="attachs_a" href="{:U('widget/Upload/down',array('attach_id'=>$value['attach_id']))}" type="<php>echo $value['extension'];</php>">
							<div class="attachs" style="background-image:url(img/attach/{$type}.png)">
								<div class="attachs_name">
									<php>echo $value['attach_name'];</php>
								</div>
								<div class="attachs_size">
									<php>echo $size;</php>
								</div>
							</div>
						</a>
					<php>}</php>
				</div>
			  <php>}</php>
			</div>
		</div>
		<php>}elseif (($feed['type'] == 'repost' && $feed['api_source']['is_del'] == '1') || ($feed['type'] == 'repost' && $feed['transpond_data']['api_source']['is_del'] == '1')) {</php>
			<!-- 原分享已被删除 -->
			<div class="c_zf_box">
				<dt class="bgcolor_arrow"><em class="arrline">◆</em><span class="downline">◆</span></dt>
				<div class="c_zf_content">原文已被删除</div>
			</div>
		<php>}</php>

		<!-- 微吧转发 -->
		<php>if (($feed['type'] == 'weiba_repost' && $feed['api_source']['is_del'] == '0') || ($feed['type'] == 'weiba_repost' && $feed['transpond_data']['is_del'] == '0') || ($feed['type'] == 'weiba_repost' && $feed['api_source']['api_source']['is_del'] == '0')) {</php>
		<div id="c_zf_box_{$feed.feed_id}" class="c_zf_box">
			<dt class="bgcolor_arrow"><em class="arrline">◆</em><span class="downline">◆</span></dt>
			<div class="c_zf_content">
				<span class="c_zf_content_name">@{$feed.api_source.source_user_info.uname}</span>:
				<php>echo wapFormatContent($feed['api_source']['source_content']);</php>
			</div>
			<div class="c_zf_info">
				<div class="c_zf_info_time">{$feed[api_source][post_time]|friendlyDate}</div>
				<div class="c_zf_info_counts">
					<span class="c_zf_info_count">评论:{$feed[api_source][reply_count]}</span>
				</div>
			</div>
			<div class="loadweiba" weibaid="{$feed.api_source.post_id}">查看全文</div>
		</div>
		<php>}elseif(($feed['type'] == 'weiba_repost' && $feed['api_source']['is_del'] == '1') || ($feed['type'] == 'weiba_repost' && $feed['transpond_data']['is_del'] == '1')) {</php>
			<!-- 原分享已被删除 -->
			<div class="c_zf_box">
				<dt class="bgcolor_arrow"><em class="arrline">◆</em><span class="downline">◆</span></dt>
				<div class="c_zf_content">原文已被删除</div>
			</div>
		<php>}</php>

		<div ><php>if(isset($feed['attach']) && $feed['type'] == 'postfile'){</php>
					<div class="attach_box">
						<php>foreach($feed['attach'] as $value){
								switch($value['extension']){
									case 'png':$type='pic';break;
									case 'jpg':$type='pic';break;
									case 'jpeg':$type='pic';break;
									case 'bmp':$type='pic';break;
									case 'gif':$type='pic';break;
									case 'zip':$type='zip';break;
									case 'rar':$type='zip';break;
									case 'doc':$type='word';break;
									case 'docx':$type='word';break;
									case 'xls':$type='xls';break;
									case 'ppt':$type='ppt';break;
									case 'pdf':$type='pdf';break;
									default:$type='unknow';break;
								}
								$size=$value['size'];
								if($size > 1024 && $size< 1024*1024){
									$size=$size/1024;
									$size=round($size,2);
									$size.='K';
								}else if($size < 1024){
									$size.='B';
								}else{
									$size=$size/1024/1024;
									$size=round($size,2);
									$size.='M';
								}
						</php>
							<a class="attachs_a" href="{:U('widget/Upload/down',array('attach_id'=>$value['attach_id']))}" type="<php>echo $value['extension'];</php>">
								<div class="attachs" style="background-image:url(img/attach/{$type}.png)">
									<div class="attachs_name">
										<php>echo $value['attach_name'];</php>
									</div>
									<div class="attachs_size">
										<php>echo $size;</php>
									</div>
								</div>
							</a>
						<php>}</php>
					</div>
			  <php>}</php>
		</div>
	</div>
		<div class="c_d">
			<div class="c_d_yes">
				<div class="c_d_text">
					删除
				</div>
			</div>
			<div class="c_d_no">
				<div class="c_d_text">
					取消
				</div>
			</div>
		</div>
	</div><!--.cob end-->
	</volist>
<php>
}
</php>